﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WSPay.Common;
using WSPay.Common.Data;

namespace WSPay.Domain
{
    /// <summary>
    /// 文史币支付交易账单
    /// </summary>
    public class WSBPayBill : IEntity
    {
        public WSBPayBill()
        {
            CreateTime = DateTime.Now;
        }
        public int ID { get; set; }

        public string SN
        {
            get
            {
                return CreateTime.ToString("yyMMdd") + ID;
            }
        }

        /// <summary>
        /// 客户编号
        /// @ClientInfo
        /// </summary>
        public Guid ClientGuid { get; set; }

        /// <summary>
        /// 交易时间
        /// </summary>
        public DateTime TradeDate { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 付款方ID
        /// </summary>
        public Guid PayerID { get; set; }

        /// <summary>
        /// 付款方姓名（数据冗余字段）
        /// </summary>
        public string PayerName { get; set; }

        /// <summary>
        /// 收款方ID
        /// </summary>
        public Guid PayeeID { get; set; }

        /// <summary>
        /// 收款方姓名（数据冗余字段）
        /// </summary>
        public string PayeeName { get; set; }

        /// <summary>
        /// 交易金额
        /// </summary>
        public int OrderMoney { get; set; }
        /// <summary>
        /// 订单号
        /// </summary>
        public string OrderNo { get; set; }
        
        /// <summary>
        /// 订单描述
        /// </summary>
        public string OrderInfo { get; set; }

        /// <summary>
        /// 交易备注
        /// </summary>
        public string Remark { get; set; }
        #region add by lyh
        public ChangeType ChangeType { set; get; }
        /// <summary>
        /// 频道名称
        /// </summary>
        public string ChannelName { set; get; }
        #endregion
    }
}
